@import '@/app/styles/variables';

.floating_card_container {
  display: flex;
  position: sticky;
  top: calc(32px + 90px);
  left: 0;
  width: 336px;
  gap: 16px;
  flex-direction: column;
  z-index: 1;
}

.floating_card {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
}

.container {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #f3f3f3;
}

.page {
  display: flex;
  gap: 32px;
}

.header {
  background: #fff;
}

.wrap {
  margin-top: 32px;
}

.card_buttons {
  position: relative;
  display: flex;
  width: 100%;
  padding: 32px;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  border-radius: 32px;
  background: #fff;
}
.card_button {
  all: unset;
  background-color: #fff;
  user-select: none;
  cursor: pointer;
  display: flex;
  color: #000;
  width: 100%;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 26px;
  &:hover {
    color: #337cec;
    .card_reviews {
      color: #337cec;
    }
  }
}

.main_title {
  color: var(--Simple-Night, #000);
  font-size: 42px;
  font-style: normal;
  font-weight: 500;
  line-height: 46px; /* 109.524% */
  margin-bottom: 40px;
  margin-top: 0px;
}

.sub {
  color: var(--simple-gray-evening, #ababab);
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 26px;
  margin-left: 6px;
}

.sub_title {
  color: var(--Simple-Gray-Evening, #ababab);
  font-size: 32px;
  font-style: normal;
  font-weight: 500;
  line-height: 40px;
}

.back_button {
  position: absolute !important;
  top: -48px;
}

.info_blocks {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.course_info {
  width: 100%;
  border-radius: 32px;
  background: #fff;
  display: flex;
  padding: 56px;
  flex-direction: column;
  gap: 48px;
  align-self: stretch;
}

.desktop {
  display: flex;
}
.mobile {
  display: none;
}

@include media(sm) {
  .sub_title {
    font-size: 20px;
    line-height: 26px;
  }
  .mobile_team {
    display: flex;
  }
  .book {
    gap: 15px;
  }
  .description {
    font-size: 16px;
    line-height: 22px; /* 137.5% */
  }
  .main_title {
    overflow: hidden;
    color: var(--Simple-Night, #000);
    text-overflow: ellipsis;
    white-space: nowrap;
    /* Mobile/Headline/H2 */
    font-size: 24px;
    line-height: 30px; /* 125% */
    margin-bottom: 24px;
    margin-top: 12px;
  }
  .mobile {
    display: flex;
  }

  .desktop {
    display: none;
  }

  .floating_card_container {
    position: relative;
    width: 100%;
    top: 0;
    z-index: inherit;
  }

  .container {
    background: #f3f3f3;
  }
  .page {
    flex-direction: column;
    gap: 0;
    margin-top: 16px;
  }
  .wrap {
    margin-top: 0;
  }
  .wrapper {
    padding: 0;
  }
  .footer {
    background: #fff;
  }
  .card_buttons {
    position: absolute;
    top: unset;
    bottom: 0;
    height: 16px;
    padding: 0;
    border-radius: 0;
    background: var(--simple-morning, #fff);
  }
  .card_button {
    display: none;
  }
  .info_blocks {
    gap: 0;
  }
  .course_info {
    padding-top: 0;
    border-radius: 0;
    padding-right: 16px;
    padding-left: 16px;
    padding-bottom: 0px;
    gap: 24px;
  }
  .block {
    gap: 16px;
  }
  .title {
    font-size: 20px;
    line-height: 26px; /* 130% */
  }
}
